package com.project.erp.dao.contract.trade;

import java.util.ArrayList;
import java.util.List;

import org.hibernate.criterion.Criterion;
import org.springframework.stereotype.Repository;

import com.project.erp.common.dao.HibernateDao;
import com.project.erp.common.utils.Page;
import com.project.erp.model.contract.trade.TradeCusContractDtl;

/**
 * 
 * COPYRIGHT (C) 2013 BY XXX公司

 *  功能模块名：合同-外贸客户合同 

 *  功能描述：外贸客户合同细表 Dao类

 * @author LiJiaGuo    

 * @version 1.0  

 * @created 2013-12-14 下午10:51:19
 */
@Repository
public class TradeCusContractDtlDao extends HibernateDao<TradeCusContractDtl, Long> {
	/**
	 * 根据条件查询
	 * @tradeCusContract page
	 * @tradeCusContract tradeCusContractDtl
	 * @return
	 */
	public Page<TradeCusContractDtl> getTradeCusContractPageBySearch(Page<TradeCusContractDtl> page,TradeCusContractDtl tradeCusContractDtl){
		List<Criterion> list = new ArrayList<Criterion>();
		
		page = this.findPage(page,list.toArray(new Criterion[list.size()]));
		
		return page;
	}
}
